import Vue from 'vue';
import App from './App.vue';
import router from './router';
import ElementUI from 'element-ui';
import store from './store'
import '@/mock/index.js';
import 'element-ui/lib/theme-chalk/index.css';
import './static/global.css';         // 全局样式
import './static/global-el-ui.less';         // 全局更改el-ui样式
import "../src/directives/test";      // 自定义指令
import "../src/directives/dateFormat";      // 自定义日期选择器格式化指令
import './assets/fonts/iconfont.css'  // icon
import './assets/fonts/iconfont.js'   // icon
import './utils/rem.js'      // rem
import "./assets/icons/index"
import './components/vant'   // vant.js管理按需引入

Vue.config.productionTip = false;
import VueDirectiveImagePreviewer from 'vue-directive-image-previewer'
import 'vue-directive-image-previewer/dist/assets/style.css'
Vue.use(VueDirectiveImagePreviewer);

import visibility from 'vue-visibility-change';
Vue.use(visibility);

import './plugins/vcharts'
import dataV from '@jiaminghi/data-view'
Vue.use(dataV)

Vue.use(ElementUI);
const vueInstance = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
export {vueInstance}
